package com.cjy.housePosting.service;

import com.base.common.persistent.model.HousePostingDetails;
import com.base.common.persistent.model.HouseRequest;
import com.cjy.common.bean.Files;

import java.io.IOException;

public interface HousePostingService {

	/**
	 * 添加房屋发布记录
	 * 
	 * @param housePostingDetails
	 * @param files
	 * @param basePath
	 * @param bid 
	 * @param code 
	 * @return
	 * @throws IOException 
	 */
	int addHousePosting(HousePostingDetails housePostingDetails, Files files, String basePath, String code, int bid) throws IOException;

	/**
	 * 根据类别查询记录条数
	 * 
	 * @param categories
	 * @param bid 
	 * @param code 
	 * @return
	 * @throws Exception 
	 */
	int queryHousePostingCounts(int categories, int status, String code, int bid) throws Exception;

	/**
	 * 分页查询发布记录列表
	 * 
	 * @param page
	 * @param categories
	 * @param status
	 * @param bid 
	 * @param code 
	 * @return
	 * @throws Exception 
	 */
	Object queryHousePosingList(int page, int categories, int status, String code, int bid) throws Exception;

	/**
	 * 增加看房记录
	 * 
	 * @param houseRequest
	 * @param code
	 * @param bid
	 * @return
	 */
	int addHouseRequest(HouseRequest houseRequest, String code, int bid);
	
	
}
